package com.tansty.security.mapper;

import com.tansty.security.pojo.Permission;
import com.tansty.security.pojo.Role;
import com.tansty.security.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tansty
 * @since 2021-07-31
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    List<Permission> findPermissionByUsername(String username);
    List<Role> findRoleByUsername(String username);
}
